<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="{$WebName}" />
<meta name="keywords" content="{$Keywords}" />
<meta name="description" content="{$Description}" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link href="{$Css}swiper.css" rel="stylesheet" type="text/css" />
<link href="{$Css}style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$WebPublic}jquery/jquery-1.7.2.min.js"></script>
<script src="{$Js}common.js" type="text/javascript"></script>
<script src="{$Js}swiper-3.4.2.jquery.min.js" type="text/javascript"></script>
<script>
  //document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() { 
  //		WeixinJSBridge.call('hideToolbar'); 
 // });
 //document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
//	WeixinJSBridge.call('hideOptionMenu');
//  });

/*
function weixinAddContact(name){ 
    WeixinJSBridge.invoke("addContact", {webtype: "1",username: name}, function(e) { 
        //WeixinJSBridge.log(e.err_msg); 
        //e.err_msg:add_contact:added 已经添加 
        //e.err_msg:add_contact:cancel 取消添加 
        //e.err_msg:add_contact:ok 添加成功 
        if( e.err_msg == 'add_contact:ok'){ 
            alert("关注成功");
        } else if(e.err_msg == 'add_contact:added'){
			alert("已经关注过!");
		}else{
			alert(e.err_msg);
		}
    }) 
} 
*/
</script>
<script>
	$(document).ready(function(e) {
		pageInit();
		function pageInit(){
			if( "{$EnableHtml}" == 1 ){
				$.get("{:JsonUrl()}", null, function(data){ UpdateLoginStatus(data['MemberID'], data['MemberName']); },"json");
			}else{
				UpdateLoginStatus("{$MemberID}", "{$MemberName}");
			}
		}
		
		function UpdateLoginStatus(id, name){
			if( id ){
				$(".MemberCenter").attr("href", "{:WapMemberUrl()}");
			}else{
				$(".MemberCenter").attr("href", "{:MemberLoginUrl()}");
			}
		}
	});
</script>